<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript" src="http://code.jquery.com/jquery-1.4.4.min.js"></script>
</head>
<body>
<script>
   $.ajax({
       url:'http://127.0.0.1:5000/view_files/scan/',
       success:function (res){
           console.log(res)
       }
   })
</script>
</body>
</html>